import grails.test.GrailsUnitTestCase;
import Contas.Permissao;

class PermissaoTestes extends GrailsUnitTestCase{
	
	private def permissao
	
	protected void setUp() {
		super.setUp()
		permissao = new Permissao(description:'Manutencao',authority:'ROLE_MANUTENCAO')
	}
	
	protected void tearDown() {
		super.tearDown()
		permissao = null
	}
	
	void testeAtributos (){
		assertEquals('Manutencao', permissao.getAt ('description'))
		assertEquals('ROLE_MANUTENCAO', permissao.getAt ('authority'))
	}
}
